package com.myl.service.store;

import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.List;

import com.github.pagehelper.PageInfo;
import com.myl.domain.store.Question;

public interface QuestionService {

	//增删改查
	   String save(Question question,boolean flag);
	   
	  //String save(Question question);

	   
	   void delete(Question question);
	   
	   void update(Question question, boolean flag);
	   
	   Question findById(String id);
	   
	   List<Question> findAll();
	   //分页查找
	   PageInfo  findAll(int page,int size);

	   ByteArrayOutputStream getReport() throws IOException;
	
}
